package com.zaizai.zaizai_good.domain.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zaizai.zaizai_good.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 商品记录对象 record
 *
 * @author lql
 * @date 2024-10-04
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Record extends BaseEntity{
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    private Long id;

    /**
     * 货品id
     */
    private Long goods;

    /**
     * 取货人/补货人
     */
    private Long userId;

    /**
     * 操作人id
     */
    private Long adminId;

    /**
     * 数量
     */
    private Long count;

    /**
     * 创建时间
     */
    private Date createtime;

    @Override
    public String toString() {
        return "Record{" +
                "id=" + id +
                ", goods=" + goods +
                ", userId=" + userId +
                ", adminId=" + adminId +
                ", count=" + count +
                ", createtime=" + createtime +
                '}';
    }
}
